#include <iostream>
#include<string>
#include<vector>
using namespace std;

void processString(string str) {
    int size = str.size();
    for (int i = 0; i < size;) {
        string ans = "00000000";
        int index = 0;
        while (i < size && index < 8) {
            ans[index++] = str[i++];
        }
        cout << ans << endl;
    }
}

int main() {
    string str;
    getline(cin, str);
    processString(str);
    return 0;
}